﻿using System;
using System.Windows.Forms;
using LetsDoIt.Interfaces;

namespace LetsDoIt.Forms
{
	public partial class AboutForm : UserControl, INavigationForm
	{

		#region Implementation of INavigationForm

		public MainForm HostForm { get; set; }
		public string Identity { get; set; }
        public bool IsActive { get; set; }

		public void NavigationEnter(object sender)
		{
			//nothing
		}

		public void NavigationLeave()
		{
			//nothing
		}

		#endregion


		#region ctor

        public AboutForm(MainForm hostForm, string identity)
		{
			HostForm = hostForm;
			Identity = identity;
			InitializeComponent();

            lblAboutContent.Text = "Created by Claudiu Farcas\r\nTo support LDIR application\r\nLGPL license - 2010";
		}

		#endregion ctor


		#region events

		private void btnBack_Click(object sender, EventArgs e)
		{
			HostForm.NavigateBack(this, string.Empty);
		}


		#endregion events


	}
}
